package edu.cmu.atlub.api;

import java.io.IOException;
import java.io.InputStream;
import java.util.HashMap;

import org.apache.http.client.ClientProtocolException;
import org.apache.http.params.DefaultedHttpParams;

public class FilterAPI extends BaseAPI {
    static final String FILTER_API_URL = "https://stream.twitter.com/1.1/statuses/filter.json";
    
    public InputStream getAPIInputStream(String location) throws ClientProtocolException, IOException {
	HashMap<String, String> params = new HashMap<String, String>();
	// params.put("track", "twitter");
	params.put("locations", location);
	
	return super.getAPIInputStream(FILTER_API_URL, params);
    }
}
